/**
 * 
 */
package com.google.code.jkippt.query;

import java.util.Calendar;

/**
 * {@link ClipQuery} builder.
 * @author Federico De Faveri defaveri@gmail.com
 */
public class ClipQueryBuilder {
	
	protected ClipQuery query;
	
	public ClipQueryBuilder()
	{
		this.query = new ClipQuery();
	}
	
	/**
	 * The results clips have to belong to the specified list.
	 * @param listId
	 * @return
	 */
	public ClipQueryBuilder inList(String listId)
	{
		query.setListId(listId);
		return this;
	}
	
	/**
	 * The results clips have been created after the specified date.
	 * @param date
	 * @return
	 */
	public ClipQueryBuilder since(Calendar date)
	{
		query.setSince(date);
		return this;
	}
	
	/**
	 * Builds the {@link ClipQuery}.
	 * @return
	 */
	public ClipQuery build()
	{
		return query;
	}

}
